//
//  LSCompetitiomView.m
//  LookScore
//
//  Created by nice on 2018/7/17.
//  Copyright © 2018年 ChongQingXunTiCompany. All rights reserved.
//

#import "LSCompetitiomView.h"

@implementation LSCompetitiomView{
    UIImageView * _iconImageView;
    UILabel * _numberLabel;
    
}

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        _iconImageView = [[UIImageView alloc] init];
        [self addSubview:_iconImageView];
        _iconImageView.sd_layout
        .leftEqualToView(self)
        .centerYEqualToView(self)
        .widthIs(15)
        .heightIs(17);
        _numberLabel = [[UILabel alloc] init];
        _numberLabel.font = LSFontSize10;
        _numberLabel.textColor = LSTitleGrayColor2;
        [self addSubview:_numberLabel];
        _numberLabel.sd_layout
        .leftSpaceToView(_iconImageView, 3)
        .centerYEqualToView(_iconImageView)
        .widthIs(15)
        .autoHeightRatio(0);
        
        
    }
    return self;
}
- (void)setImage:(NSString *)imageStr withNumber:(NSString *)number{
    _iconImageView.image = [UIImage imageNamed:imageStr];
    _numberLabel.text = number;
    
}
@end
